import request from '@/utils/request'

// 查询活动考勤列表
export function listActivityAttendance(query) {
  return request({
    url: '/activity/activityAttendance/list',
    method: 'get',
    params: query
  })
}

// 查询活动考勤详细
export function getActivityAttendance(attendanceId) {
  return request({
    url: '/activity/activityAttendance/' + attendanceId,
    method: 'get'
  })
}

// 新增活动考勤
export function addActivityAttendance(data) {
  return request({
    url: '/activity/activityAttendance',
    method: 'post',
    data: data
  })
}

// 修改活动考勤
export function updateActivityAttendance(data) {
  return request({
    url: '/activity/activityAttendance',
    method: 'put',
    data: data
  })
}

// 删除活动考勤
export function delActivityAttendance(attendanceId) {
  return request({
    url: '/activity/activityAttendance/' + attendanceId,
    method: 'delete'
  })
}
